package cloud.misiro.module.system.dal.mysql.user;

import cloud.misiro.framework.mybatis.core.mapper.BaseMapperX;
import cloud.misiro.module.system.dal.dataobject.user.AdminUserDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author misiro
 * @since 2024/3/21 22:10
 */
@Mapper
public interface AdminUserMapper extends BaseMapperX<AdminUserDO> {

    default AdminUserDO selectByUsername(String username) {
        return selectOne(AdminUserDO::getUsername, username);
    }
}
